package org.ouwh.oowiki.http;

import javax.servlet.http.HttpServletRequest;

import org.ouwh.fw.model.data.Struct;

public class MyRequest {
	private Struct parameters = new Struct("request");
	private HttpServletRequest rawRequest;

	public MyRequest(HttpServletRequest rawRequest) {
		this.rawRequest = rawRequest;
	}
	public Struct getParameters() {
		return parameters;
	}

	public void setParameters(Struct parameters) {
		this.parameters = parameters;
	}

	public void putParameter(String name, String value) {
		parameters.addData(name, value);
	}

	public String getParameter(String name) {
		return (String) parameters.get((Object) name).getValue();
	}
	
	public HttpServletRequest getRawRequest() {
		return rawRequest;
	}

}
